package com.jctrip.hotel.source.model.greentree.resp;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author：Haruhi
 * @description:
 * @Date：2023/8/30 16:24
 * @Package：com.jctrip.hotel.source.model.greentree.resp
 * @Project：hotel-main
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@JacksonXmlRootElement(localName = "GetHotelID")
public class GetAllHotelInfoResp extends GreenTreeBaseResp {
    /**
     * type : RESPONSE
     * chainCode : ITTEST0228
     * language : C
     * Result : SUCCESS
     * HotelInfos : {"HotelInfo":[{"HotelCode":10003,"HotelName":"格林豪泰格林豪泰北京市清河商务酒店","HotelCounty":"北京市","HotelCity":"北京市"},{"HotelCode":10004,"HotelName":"格林豪泰格林豪泰北京市方庄商务酒店","HotelCounty":"北京市","HotelCity":"北京市"},{"HotelCode":10005,"HotelName":"格林豪泰格林豪泰北京市亦庄万源街地铁站商务酒店","HotelCounty":"北京市","HotelCity":"北京市"},{"HotelCode":21002,"HotelName":"格林豪泰格林豪泰上海市中山沪太商务酒店1111","HotelCounty":"上海市","HotelCity":"上海市"},{"HotelCode":21003,"HotelName":"格林豪泰格林豪泰上海市武宁路镇坪路地铁站商务酒店","HotelCounty":"上海市","HotelCity":"上海市"},{"HotelCode":21005,"HotelName":"格林豪泰格林豪泰上海市江浦商务酒店","HotelCounty":"上海市","HotelCity":"上海市"},{"HotelCode":21009,"HotelName":"格林豪泰格林豪泰上海市延安中路快捷酒店","HotelCounty":"上海市","HotelCity":"上海市"},{"HotelCode":21014,"HotelName":"格林豪泰格林豪泰上海市松江松东商务酒店","HotelCounty":"上海市","HotelCity":"上海市"},{"HotelCode":21018,"HotelName":"格林豪泰格林豪泰上海市北外滩宁国路地铁站商务酒店","HotelCounty":"上海市","HotelCity":"上海市"},{"HotelCode":999999,"HotelName":"格林豪泰格林豪泰江苏省淮安市楚州大道商务酒店","HotelCounty":"江苏省","HotelCity":"淮安市"}]}
     */
    @JacksonXmlElementWrapper(localName = "HotelInfos")
    @JacksonXmlProperty(localName = "HotelInfo")
    private List<HotelInfoBean> hotelInfos;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @Builder
    public static class HotelInfoBean {
        /**
         * HotelCode : 10003
         * HotelName : 格林豪泰格林豪泰北京市清河商务酒店
         * HotelCounty : 北京市
         * HotelCity : 北京市
         */
        @JacksonXmlProperty(localName ="HotelCode")
        private String hotelCode;
        @JacksonXmlProperty(localName ="HotelName")
        private String hotelName;
        @JacksonXmlProperty(localName ="HotelCounty")
        private String hotelCounty;
        @JacksonXmlProperty(localName ="HotelCity")
        private String hotelCity;
    }
}
